<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="assetMenu" />
<meta name="nav" content="0" />
<meta name="acc" content="_construction"/>
<title>施工单位</title>
<script type="text/javascript"
	src="<c:url value='/ext/ui/jquery-ui-1.8.12.custom.min.js'/>"></script>
<script>
		$(document).ready(function() {
			$("#addSign").click(function(){
				url="${ctx}/project/sign/construction!input.action?projectId=${projectId}&contractKind=4";
				mm = openWindowAsDialog(url);
				if(null!=mm){
					document.location.reload();
				}
			});
		});
		function showDept(url){
			mm = showDialogWindow(url);	
		}
		function showSign(url){
			mm = showDialogWindow(url);
			document.location.reload();
		}
		function showUserDetails(url){
			showDialogWindow(url);
		}
</script>
</head>
<body>
<div id="heading" class="sign"><h6>施工单位列表</h6></div>
<form action="construct.action" method="post" id="mainForm"
	class='yform'>
  <table width="200" border="0" cellspacing="0" cellpadding="1">
      <tr>
      <th>序号</th>
      <th>施工合同段名称</th>
      <th>施工单位名称</th>
      <th>工程项目部</th>
      <th>工地实验室</th>
      <th>主要人员</th>
    </tr>
    <c:forEach items="${page.result}" var="construct" varStatus="constructNum">
     <tr>
      <td>${constructNum.count}</td>
      <td><a href="#"  class="underline" onclick="showSign('${ctx}/project/sign/construction!input.action?id=${construct.id}&projectId=${projectId}&contractKind=4');">${construct.contractOrder}</a></td>
      <td>${construct.branchOrgCode.organization.orgName}</td>
      <td><a href="#"  class="underline" onclick="showDept('${ctx}/project/org/organization!input.action?id=${construct.branchOrgCode.organization.id}&projectId=${projectId}&typeId=${contractKind}&deptId=${construct.branchOrgCode.id}&signid=${construct.id }');">
      ${construct.branchOrgCode.depName}</a> </td>
      <td><a href="#" class="underline" onclick="showDept('${ctx}/project/labs/detectcontract.action?organizationId=${construct.branchOrgCode.organization.id}&projectId=${projectId}&typeId=${contractKind}&deptId=${construct.branchOrgCode.id}&signid=${construct.id }');">进入</a></td>
  	  <td><a href="#" class="underline" onclick="showUserDetails('${ctx}/project/sign/org/ext/userdepartment!userDetails.action?organizationId=${construct.branchOrgCode.organization.id}&projectId=${projectId}&typeId=2&deptId=${construct.branchOrgCode.id}');">进入</a></td>
    </tr>
    </c:forEach>
  </table>
<div class="type-button"><input id="addSign" type="button" class="submit" value="新增" />
	<input type="button" value="返回" class="reset" onclick="history.back()" />
</div>
</form>
</body>
</html>

